/* Tab navigation */

div#tabs {
  border-bottom: 1px solid #bbb;
  border-left: 1px solid #bbb;
  border-right: 1px solid #bbb;
  margin: 0 10px 8px 10px;
  padding: 1em;
  text-align: center;
}

div#tabs table { 
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

div#tabs td.left {text-align: left; }
div#tabs td.right {text-align: right; }
div#tabs td.center {text-align: center; }

ul.primary {
  border-collapse: collapse;
  white-space: nowrap;
  list-style: none;
  margin: 8px 10px 0 10px;
  height: auto;
  line-height: normal;
  border-bottom: 1px solid #bbb;
}

ul.primary li {
  display: inline;
}

ul.primary li a {
  background-color: #ddd;
  border-color: #bbb;
  border-width: 1px;
  border-style: solid solid none solid;
  height: auto;
  margin-right: 0.5em;
  padding: 0 1em;
  text-decoration: none;
  color: #728FA4;
}

ul.primary li.active a {
  background-color: #FFF;
  border-bottom: #FFF 1px solid;
  border-top: #F08C00 1px solid;
  color: #336699;
}

ul.primary li a:hover {
  background-color: #fff;
  border-color: #ccc;
  border-bottom-color: #eee;
  color: #336699;
}

ul.secondary {
  border-bottom: 1px solid #bbb;
  padding: 0.5em 1em 0.5em 1em;
  margin: 5px;
}

ul.secondary li {
  display: inline;
  padding: 0 1em;
  border-right: 1px solid #ccc;
}

ul.secondary a {
  padding: 0;
  text-decoration: none;
}

ul.secondary a.active {
  border-bottom: 4px solid #999;
}